package com.peter.spring.framework.beans;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/20 23:01
 * @Description: Bean的包装类，getBean方法最终返回该对象
 */
public class XDBeanWrapper {

    private Object wrappedInstance;//被包装的类 BeanDefinition
    private Class<?> wrappedClass;

    public XDBeanWrapper(Object wrappedInstance) {
        this.wrappedInstance = wrappedInstance;
    }

    public Object getWrappedInstance() {
        return wrappedInstance;
    }

    public Class<?> getWrappedClass() {
        return this.wrappedInstance.getClass();
    }
}
